home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / mail / xmailbox.4-s / xmailbox / xmailbox-2.4 / Imakefile < prev    next >
Makefile  |  1996-07-01  |  3KB  |  107 lines

  1. XCOMM $Header: /tmp/xmailbox/RCS/Imakefile,v 1.1 1995/05/07 21:48:17 wcheung Exp wcheung $
  2. #------------------------------------------
  3. # Change the XPM include and lib
  4. # directories appropriately.
  5. # Note: you need to have XPM 3.4 or higher!
  6. #------------------------------------------
  7. #
  8. XPMINCDIR = /usr/include/X11
  9. XPMLIBDIR = /usr/X11/lib
  10.    XPMLIB = -L$(XPMLIBDIR) -lXpm
  11.  
  12. #-------------------------------
  13. # Architecture specific defines
  14. #-------------------------------
  15. #ifdef HPArchitecture
  16. CCOPTIONS = -Aa -D_HPUX_SOURCE
  17. #endif
  18.  
  19. #------------------------------------------
  20. # Comment the following define if you
  21. # want audio support
  22. #------------------------------------------
  23. /* #define NO_AUDIO          /* */
  24.  
  25. #------------------------------------------
  26. # Uncomment the following define if your
  27. # O/S supports SUN-compatible audio and
  28. # you would like to use the standard SUN
  29. # audio driver when neither the NCD audio
  30. # server nor the rplay sound server is
  31. # available.
  32. # Notes: 
  33. # 1) When you compile using SUN_AUDIO 
  34. #    with either NCD_AUDIO or 
  35. #    RPLAY_AUDIO,  the program will
  36. #    fall back to use the standard SUN
  37. #    audio driver if a rplay or NCD
  38. #    server is not running.
  39. #
  40. # 2) If you are running Linux or FreeBSD
  41. #    and you have a sound card, you can
  42. #    uncomment the following define to
  43. #    turn on sound support. 
  44. #------------------------------------------
  45. SUN_AUDIO = -DSUN_AUDIO   /* */
  46.  
  47. #------------------------------------------
  48. # Uncomment the following define if you
  49. # are using an NCD audio server
  50. #------------------------------------------
  51. /* #define NCD_AUDIO         /* */
  52.  
  53. #------------------------------------------
  54. # Uncomment the following define if you
  55. # are using rplay sound server
  56. #------------------------------------------
  57. /* #define RPLAY_AUDIO       /* */
  58.  
  59. #------------------------------------------
  60. # Uncomment the following define if you
  61. # are playing a sound via an external
  62. # sound player.
  63. #------------------------------------------
  64. /* #define COM_AUDIO       /* */
  65.  
  66. #ifndef NO_AUDIO
  67. #ifdef NCD_AUDIO
  68.       NCDINCDIR = /usr/local/include/ncd
  69.       NCDLIBDIR = /usr/local/lib
  70.  
  71.          SNDLIB = -L$(NCDLIBDIR) -laudio -lm
  72.        INCLUDES = -I$(XPMINCDIR) -I$(NCDINCDIR) -I/usr/public/include
  73.   EXTRA_DEFINES = -DNCD_AUDIO $(SUN_AUDIO) 
  74. #else
  75. #ifdef RPLAY_AUDIO
  76.        RPINCDIR = /usr/local/include/rplay
  77.        RPLIBDIR = /usr/local/lib
  78.          SNDLIB = -L$(RPLIBDIR) -lrplay -lm
  79.        INCLUDES = -I$(XPMINCDIR) -I$(RPINCDIR) -I/usr/public/include
  80.   EXTRA_DEFINES = -DRPLAY_AUDIO $(SUN_AUDIO) 
  81. #else
  82. #ifdef COM_AUDIO
  83.        INCLUDES = -I$(XPMINCDIR) -I/usr/public/include
  84.   EXTRA_DEFINES = -DCOM_AUDIO 
  85. #else
  86.          SNDLIB = 
  87.        INCLUDES = -I$(XPMINCDIR) -I/usr/public/include
  88.   EXTRA_DEFINES = $(SUN_AUDIO)
  89. #endif /* COM_AUDIO */
  90. #endif /* RPLAY_AUDIO */
  91. #endif /* NCD_AUDIO */
  92. #else
  93.          SNDLIB = 
  94.        INCLUDES = -I$(XPMINCDIR)
  95.   EXTRA_DEFINES = -DNO_AUDIO
  96. #endif /* NO_AUDIO */
  97.  
  98.    SRCS = Mailbox.c xmailbox.c 
  99.    OBJS = Mailbox.o xmailbox.o
  100.  
  101.         DEPLIBS = $(DEPXLIB) $(DEPXAWLIB) $(DEPXTOOLLIB) $(DEPXMULIB)
  102. LOCAL_LIBRARIES = $(XPMLIB) $(SNDLIB) $(XLIB) $(XAWLIB) $(XTOOLLIB) $(XMULIB)
  103.  
  104. ComplexProgramTarget(xmailbox)
  105. InstallAppDefaults(XMailbox)
  106.  
  107.